
//const str = "hello string" // []

// for(let item of str) {
// 	console.log(item)
// }

//   `${}`   模板字符串
// 
/*
String.fromCharCode 不识别大于 FFFF
console.log(String.fromCharCode(0x20bb7))
console.log(String.fromCharCode(0x0bb7))
console.log("======")
console.log(String.fromCodePoint(0x20bb7))
console.log(String.fromCodePoint(0x20bb6))
console.log(String.fromCodePoint(0x0bb7))

// console.log("hello \\n string")
console.log(String.raw`hello \n string`)

// const str = "hello string"
const str = "𠮷a" //"张"  FFFF
// console.log(str.length)
// console.log(str.charCodeAt(0))
console.log(str.codePointAt(0))
console.log(str.codePointAt(1))
console.log(str.codePointAt(2))

// console.log(str.repeat(3))
console.log(str.padStart(30, "x"))
console.log(str.padEnd(30, "x"))
*/

const str = "hello string"

// console.log(new Date().getSeconds().padStart(2, "0"))
const now = new Date()
console.log(`${now.getHours()}:${String(now.getMinutes()).padStart(2, "0")}`)
console.log(`${now.getHours()}:${(now.getMinutes())}`)







